package com.bolt.report.engine.model;

import java.util.List;

public class Title extends BaseBand {

    private boolean loopPrintTitle ;


    public Title(List<Column> columns, boolean loopPrintTitle) {
        this.loopPrintTitle = loopPrintTitle;
        setColumns(columns);
    }

    public boolean isLoopPrintTitle(int pageNumber) {
         if(loopPrintTitle){
             return  loopPrintTitle;
         }else {
             return pageNumber == 0;
         }
    }
}